Please ask about problems and questions regarding this tutorial on answers.ros.org. Don't forget to include in your question the link to this page, the versions of your OS & ROS, and also add appropriate tags. |
Publishing a Topic
Description: Publishing a TopicTutorial Level: BEGINNER
Next Tutorial: Applications
Publishing cmd_vel
Figure shows publishing data to cmd_vel topic. Firstly connect to ROS. Then, create a publisher with parameter topic name and message type. Then, send data. In this example cmd_vel value is sent. This data takes linear and angular velocities in x, y, z directions.